
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"  content="width= device-width,initial-scale=1.3">
    <title>HTML</title>

    <style>
        #text {
          font-size: 45px;
        }
    </style>
</head>
<body>
<!-- 使用变量的例子 -->
<div id="text"></div>
</body>
<script type="text/javascript">
        let result=window.objName.getString();
        window.onload = function(){
            document.write(result);
            document.getElementById('text').innerHTML= result;
        }
  </script>
</html>